package com.chanyachting.emall.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

import com.chanyachting.emall.util.RequestUtil;

public class MemberorderservicesForm extends ActionForm {
	
	
	
	// primary key
	private java.lang.Integer id;

	// fields
	
	
	private java.lang.String nowState;			//当前状态
	
	private java.lang.Integer serviceExecuteTime;	//已执行次数
	
	private java.lang.String lostDate;  //失效时间
	
	
	

	
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		
		ActionErrors errors=new ActionErrors();
		
		RequestUtil ru=new RequestUtil(request);
		
		if(this.getLostDate()==null || this.getLostDate().trim().equals("")){
			
			ru.setMsg("到期时间不能为空！");
			
			errors.add("",new ActionMessage(""));
		}

		return errors;
		
	}

	public java.lang.Integer getId() {
		return id;
	}

	public void setId(java.lang.Integer id) {
		this.id = id;
	}

	public java.lang.String getNowState() {
		return nowState;
	}

	public void setNowState(java.lang.String nowState) {
		this.nowState = nowState;
	}

	public java.lang.Integer getServiceExecuteTime() {
		return serviceExecuteTime;
	}

	public void setServiceExecuteTime(java.lang.Integer serviceExecuteTime) {
		this.serviceExecuteTime = serviceExecuteTime;
	}

	public java.lang.String getLostDate() {
		return lostDate;
	}

	public void setLostDate(java.lang.String lostDate) {
		this.lostDate = lostDate;
	}
	
	
	
	
	
	

}
